import { GET, POST } from '@/utils'

enum API {
    GET_WHITE_LIST_API = '/selectWhite',
    ADD_WHITE_LIST_API = '/addWebWhite',
    UPDATE_WHITE_LIST_API = '/updateWhite',
    DELETE_WHITE_LIST_API = '/deleteWhite',
}

export const getWhiteListApi = (data: any) => POST(API.GET_WHITE_LIST_API, data, false)
export const addWhiteListApi = (data: any) => POST(API.ADD_WHITE_LIST_API, data, false)
export const updateWhiteListApi = (data: any) => POST(API.UPDATE_WHITE_LIST_API, data, false)
export const delWhiteListApi = (data: any) => POST(API.DELETE_WHITE_LIST_API, data, false)